FROM python:3.10

# RUN curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
# RUN sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-*
# RUN sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
# RUN yum clean all
# RUN yum makecache

# RUN dnf -y update
# RUN dnf -y install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel
# RUN dnf -y install python38
# RUN ln -sf /usr/bin/pip3.8 /etc/alternatives/pip3
# RUN ln -sf /usr/bin/pydoc3.8 /etc/alternatives/pydoc3
# RUN ln -sf /usr/bin/python3.8 /etc/alternatives/python3
# RUN yum -y install vim wget gzip tar
# RUN yum -y install zlib-devel bzip2-devel pcre-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel

WORKDIR /opt

RUN mkdir ~/.pip
COPY pip.conf ~/.pip/
RUN pip3 install --upgrade pip

COPY requirements.txt requirements.txt
RUN pip3 install -r /opt/requirements.txt

RUN django-admin startproject iClouds